TakCertificateStoreImpl

Encrypted per-install storage for the local TAK server's TLS material, in openEncryptedPreferences. Blobs are Base64-encoded because EncryptedSharedPreferences only stores strings.

Constructors

Link copied to clipboard
constructor(app: Application)

Functions

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun load(): TakCertificateMaterial?

Returns null for an empty, partial or undecryptable store. EncryptedSharedPreferences throws from getString when the master key no longer matches (keystore reset, data restored onto another device); that is treated as "no material" so the caller issues a fresh set instead of failing on every start.

Link copied to clipboard
open override fun save(material: TakCertificateMaterial)